import React, { Component } from 'react'

import { View} from '@tarojs/components'

import Taro from "@tarojs/taro"
import './index.less'
import SearchBar from "../../components/SearchBar/SearchBar";
import EmotionAnalysis from "../../components/echarts/EmotionAnalysis";
import WebCount from "../../components/echarts/WebCount";

class Index extends Component {

  componentWillUnmount () { }

  componentDidShow () {
    Taro.setTabBarStyle({
      backgroundColor:"#000539",
      color:"#ffffff"
    })
  }

  componentDidHide () {
    Taro.setTabBarStyle({
      backgroundColor:"#ffffff",
      color:"#333333"
    })
  }

  render () {
    return (
      <View className='index'>
        <View className='bgc'>

          <SearchBar />
          <EmotionAnalysis />
          <WebCount />
        </View>
      </View>
    )
  }
}

export default Index

